package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDao {
    void add(Address address);

    Page<Address> selectByCondition(String queryString);

    void deleteById(Integer id);

    Address findById(Integer id);

    void edit(Address address);

    Integer findId(String longitudeAndLatitude);

    void setOrderIdAndAddressId(@Param("orderId") Integer orderId, @Param("addressId")Integer addressId);

    List<Address> findAllAddress();

}
